{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <input type="text" class="input-text" style="width:250px" placeholder="请输入id/姓名/手机号/账号" name="keyword" value="{$Request.param.keyword}">
        <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>
    <div class="cl pd-5 bg-1 bk-gray">
         <span class="l">
            <!--{tp:menu /}-->
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="th" /}
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}
            <td class="f-14">
                {if condition="($vo.status == 0)"}
                <button id="access" onclick="getUserResumeById({$vo.id}, {$vo.user_id})" style="background-color: limegreen; border: 1px solid limegreen; color: white">通过</button>
                <button id="resume" onclick="getUserForbidById({$vo.id}, {$vo.user_id}, {$vo.amount})" style="background-color: orangered; border: 1px solid orangered; color: white">拒绝</button>
                {else /}
                <button id="access" onclick="getUserResumeById({$vo.id}, {$vo.user_id})" disabled="false" style="background-color: gray; border: 1px solid linen; color: white">通过</button>
                <button id="resume" onclick="getUserForbidById({$vo.id}, {$vo.user_id}, {$vo.amount})" disabled="false"  style="background-color: gray; border: 1px solid lightgray; color: white">拒绝</button>
                {/if}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page}</div>
</div>
{/block}